package com.ssy.lingxi.marketing.model.vo.common.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 主键id请求实体类
 * @author yzc
 * @version 2.0.0
 * @date 2020/8/6
 */
@Data
public class CommonIdReq implements Serializable {

    private static final long serialVersionUID = 4461498440548715238L;

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空")
    @Range(min = 1, message = "id必须大于0")
    private Long id;
}
